# 登录系统
user_data = "AAA"
password_data = "111"

count = 10
while True:
    count -= 1
    user_name = input("请输入您的账号：")
    pass_word = input("请输入您的密码：")
    # 1. 判断帐号
    if user_name in user_data:
        if user_name in user_data :
            if pass_word == password_data:
                    print("欢迎会员")
                    pass
            else:
                 if count == 0:
                        print("您输入的账号或密码不正确，请5分钟后再尝试输入")
                        break
                 else:
                        print("您输入的账号或密码不正确，请重新输入，您还有", count, "次机会~加油~")
        else:
                 if count == 0:
                        print("你都输入三次了，还不对，笨死了~~~，别输了，5分钟后再来")
                        break
    else:
                    print("您输入的账号或密码不正确，请重新输入，您还有", count, "次机会~加油~")
                    break
            # 输出时间，让具体的星期和小时转成可以被判断的条件。
    import time
    print(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))  # 输出当前时间
    time = time.strftime("%H")
    week_time = int(time)

    import datetime

    day = datetime.datetime.today().weekday()
    week_day = int(day)

    print("今日课程安排为：")
    # 2.判断具体条件输出当前的课。
    # 01234分别表示周一到周五
    if week_day == 0:
        print("今天是被英语包围的一天嗷")
        if week_time < 12:
           print("不要忘记午休嗷")
        elif week_time > 12 and week_time < 18:
            print("8-9节大学英语")
        elif week_time > 18:
            print("不要忘记学习嗷")

    elif week_day == 1:
        print("今天实践课程拉满啦")
        if week_time < 10:
           print("1-2节毛概实践")
        if week_time > 10 and week_time < 12:
            print("不要忘记午休嗷")
        if week_time > 12 and week_time < 18:
            print("8-9节创业实践")
        if week_time > 18:
            print("不要忘记学习嗷")

    elif week_day == 2:
         print("最多课的一天呢")
         if week_time < 10:
            print("1-2节定向越野")
         if week_time > 10 and week_time < 12:
            print("3-5节毛概实践")
         if week_time > 12 and week_time < 18:
            print("周三公休日")
         if week_time > 18:
            print("12-13节大学英语")

    elif week_day == 3:
        print("yeah，终于上专业课了！")
        if week_time < 12:
          print("3-5节Python")
        if week_time > 12 and week_time < 18:
          print("8-9节广告文案写作")
        if week_time > 18:
          print("不要忘记学习嗷")

    elif week_day == 4:
        print("虽然是周五了也要好好学习哦")
        if week_time < 12:
           print("3-5节网站运营与管理")
        if week_time > 12 and week_time < 18:
           print("结束一周课程happy！")

    else:
         print("周末愉快！")

    choose = "Y"
    while True:
                count -= 1
                userchoose = input("继续查询具体某星期的课程Y/N")
                if userchoose == choose:
                    a = input("请输入想要查询的星期（注意：请输入纯数字）：")
                    b = "1"
                    c = "2"
                    d = "3"
                    e = "4"
                    f = "5"
                    if a == b:
                        print("今天是被英语包围的一天嗷")
                        print("不要忘记午休嗷")
                        print("8-9节大学英语")
                        print("不要忘记学习嗷")
                    elif a == c:
                        print("今天实践课程拉满啦")
                        print("1-2节毛概实践")
                        print("不要忘记午休嗷")
                        print("8-9节创业实践")
                        print("不要忘记学习嗷")
                    elif a == d:
                        print("最多课的一天呢")
                        print("1-2节定向越野")
                        print("3-5节毛概实践")
                        print("周三公休日")
                        print("12-13节大学英语")
                    elif a == e:
                        print("yeah，终于上专业课了！")
                        print("3-5节Python")
                        print("8-9节广告文案写作")
                        print("不要忘记学习嗷")
                    elif a == f:
                        print("虽然是周五了也要好好学习哦")
                        print("3-5节网站运营与管理")
                        print("结束一周课程happy！")

                if count == 0:
                    print("您当日可查询次数已到达上限，请明天再来查询")
                    break

